import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/font/iconfont.css'
import axios from 'axios';
Vue.prototype.$http = axios
axios.defaults.baseURL="http://localhost:9000"
axios.interceptors.request.use(config => {
  let token = window.localStorage.getItem('authorization')
  if (token) {
    config.headers.authorization = token
  }
  return config
}, error => {
  return Promise.reject(error)
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
